package com.sanda.bailin.controller;

import com.sanda.bailin.pojo.UserInfo;
import com.sanda.bailin.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


//@RestController
@Controller
public class HelloController {

    @Autowired
    HelloService helloService;

    @RequestMapping("hello")
    public String hello(Model model){
        //String name = helloService.hello();
        //List<UserInfo> userInfos = helloService.hello_all();
        //model.addAttribute("items",userInfos);
        return  "123";
        //System.out.println(name);
       // System.out.println("有人来了");
        //return helloService.hello(name);
    }
}
